package com.lzh.staservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
@SuppressWarnings("all")
/**
 * @Classname StaApplication
 * @Description TODO
 * @Date 2021/3/14 15:43
 * @Author Anonymous
 */
@SpringBootApplication  //启动类
@MapperScan("com.lzh.staservice.mapper")  //xml文件扫描
@ComponentScan("com.lzh")  //包扫描
@EnableDiscoveryClient  //服务发现
@EnableFeignClients  //服务调用
@EnableScheduling  //定时任务
public class StaApplication {
    public static void main(String[] args) {
        SpringApplication.run(StaApplication.class, args);
    }
}
